/*
This file is part of SmartShopper

SmartShopper is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

SmartShopper is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with vlc-remote.  If not, see <http://www.gnu.org/licenses/>.
*/

#include "shoplistobject.h"

// one object in ShopList model with accessible from QML properies

ShopListObject::ShopListObject() //(QObject *parent) :
//    QObject(parent)
{
}

int ShopListObject::id() const
{
    return mId;
}

void ShopListObject::setId(const int cId)
{
    if (cId != mId)
        mId = cId;
}

QString ShopListObject::name() const
{
    return mName;
}

void ShopListObject::setName(const QString &cName)
{
    if (cName.compare(mName))
        mName = cName;
//    emit nameChanged();
}

QString ShopListObject::storeName() const
{
    return mShopName;
}

void ShopListObject::setShopName(const QString &cName)
{
    if (cName.compare(mShopName))
        mShopName = cName;
//    emit nameShopChanged();
}

int ShopListObject::storeId() const
{
    return mStore;
}

void ShopListObject::setStoreId(const int cStoreId)
{
    if (cStoreId != mStore)
        mStore = cStoreId;
//    emit storeIdChanged();
}

int ShopListObject::stateId() const
{
    return mState;
}

void ShopListObject::setStateId(const int cStateId)
{
    if (cStateId != mState)
        mState = cStateId;
//    emit stateIdChanged();
}
